package com.lz.ht.service;

import com.lz.ht.model.Book;
import com.lz.ht.model.DropInformation;
import com.lz.ht.model.Room;
import com.lz.ht.model.Roombook;
import com.lz.ht.page.PageModel;

import java.util.List;
import java.util.Map;

public interface RoomService {
    List<Room> findPageList(PageModel<Room> page, Room room) throws Exception;

    long findCount(Room room) throws Exception;

    void add(Room room);

    Room findById(String rno);

    void updateById(Room room);

    void deleteById(String rno);

    List<Roombook> findFreeRoomList(PageModel<Roombook> page, Roombook roombook) throws Exception;

    long findFreeRoomCount(Roombook roombook) throws Exception;

    DropInformation dropRoom(DropInformation dropInformation);

    void addbook(Book book);
}
